package day2;

/**
 * @author oldliu
 * @since 1.0
 */
public class Disk {
    private String label;
    private int size;

    //下标
    private int index=0;
    SoftWare []soft=new SoftWare[0];

    public Disk(String label, int size) {
        this.label = label;
        this.size = size;
    }

    public void add(SoftWare s){
        //
        if(index>=soft.length){
            //扩容
        }
        //
        soft[index++]=s;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }
}
